import request from '@/utils/request'

// 获取layoutNav导航数据
export const getCategoryHeadService = () => request.get('/home/category/head')

// 获取layoutBanner轮播图数据
export const getBannerListService = (distributionSite = '1') =>
  request.get('/home/banner', {
    params: {
      distributionSite
    }
  })

// 获取layout 新鲜好物数据
export const getHomeNewListService = () => request.get('/home/new')

// 获取layout 人气推荐数据
export const getHomeHotListService = () => request.get('/home/hot')

// 获取layout 所有商品数据
export const getHomeGoodsListService = () => request.get('/home/goods')
